package com.avenger.service;

import com.avenger.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: BootStrapDemo
 * @description: user - service
 * @author: guanshilong
 * @create: 2019-04-29 08:56
 **/

@Service
@Slf4j
public class UserService {
    @Autowired
    UserMapper userMapper;

    public void addUser(String name, String password){
        log.info(name, password);
        userMapper.addUser(name, password);
    }
}
